import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqFightRoleHelper } from "./SeqFightRoleHelper";
type int = number;
//class SPetExploreStart
    
    export  class SPetExploreStart extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SPetExploreStart();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.autoExplore);
            arg1.writeInt(this.startLevel);
            arg1.writeInt(this.maxLevel);
            SeqFightRoleHelper.write(arg1, this.fightRoles);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.autoExplore = arg1.readBool();
            this.startLevel = arg1.readInt();
            this.maxLevel = arg1.readInt();
            this.fightRoles = SeqFightRoleHelper.read(arg1);
            return;
        }

        public /* const */_type: int=221;

        public /* var */autoExplore: Boolean;

        public /* var */startLevel: int;

        public /* var */maxLevel: int;

        public /* var */fightRoles: Array<any>;

        public static /* var */_regist: SPetExploreStart;
    }

            SPetExploreStart._regist = new SPetExploreStart(true);
        